package com.codeduck.exception.constant;

/**
 * 响应状态对象
 *
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2021-12-26
 */
public enum  ResponseStatus {
    OK("200", "请求成功"),

    PERMISSION_ERROR("555", "权限异常"),

    ERROR("500", "服务器异常");

    private String code;
    private String msg;

    ResponseStatus(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
